package com.xintai.sparepart.spareandpart.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xintai.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xintai.common.annotation.Excel;
import com.xintai.common.core.domain.BaseEntity;

/**
 * 备品备件货品分类对象 bei_types
 *
 * @author xintai
 * @date 2020-12-23
 */
public class BeiTypes extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分类ID */
    private Long typeId;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String typeName;

    /** 分类名称的全称， 含上级名称  格式如： 机电类.控制器 */
    @Excel(name = "分类名称的全称， 含上级名称  格式如： 机电类.控制器")
    private String typeAllName;

    /** 备注 */
    @Excel(name = "备注")
    private String typeRemark;

    /** 上级分类ID， 自己关联自己 bei_types */
    @Excel(name = "上级分类ID， 自己关联自己 bei_types")
    private Long typeParentid;

    /** 排序 */
    @Excel(name = "排序")
    private Long typeOrder;

    /** 是否删除， 字典数据不删除，0  正常可用，1 删除禁用， 但可关联查询 */
    @Excel(name = "是否删除， 字典数据不删除，0  正常可用，1 删除禁用， 但可关联查询")
    private String typeIsdel;

    /** 维护人ID， 关联 sys_user */
    @Excel(name = "维护人ID， 关联 sys_user")
    private Long userId;

    /** 维护时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "维护时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date typeTime;

     /**关联自己*/
    private List<BeiTypes> children = new ArrayList<BeiTypes>();

    /**维护人*/
    private SysUser sysUser;

    public void setTypeId(Long typeId)
    {
        this.typeId = typeId;
    }

    public Long getTypeId()
    {
        return typeId;
    }
    public void setTypeName(String typeName)
    {
        this.typeName = typeName;
    }

    public String getTypeName()
    {
        return typeName;
    }
    public void setTypeAllName(String typeAllName)
    {
        this.typeAllName = typeAllName;
    }

    public String getTypeAllName()
    {
        return typeAllName;
    }
    public void setTypeRemark(String typeRemark)
    {
        this.typeRemark = typeRemark;
    }

    public String getTypeRemark()
    {
        return typeRemark;
    }
    public void setTypeParentid(Long typeParentid)
    {
        this.typeParentid = typeParentid;
    }

    public Long getTypeParentid()
    {
        return typeParentid;
    }
    public void setTypeOrder(Long typeOrder)
    {
        this.typeOrder = typeOrder;
    }

    public Long getTypeOrder()
    {
        return typeOrder;
    }
    public void setTypeIsdel(String typeIsdel)
    {
        this.typeIsdel = typeIsdel;
    }

    public String getTypeIsdel()
    {
        return typeIsdel;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setTypeTime(Date typeTime)
    {
        this.typeTime = typeTime;
    }

    public Date getTypeTime()
    {
        return typeTime;
    }

    public List<BeiTypes> getChildren() {
        return children;
    }

    public void setChildren(List<BeiTypes> children) {
        this.children = children;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("typeId", getTypeId())
            .append("typeName", getTypeName())
            .append("typeAllName", getTypeAllName())
            .append("typeRemark", getTypeRemark())
            .append("typeParentid", getTypeParentid())
            .append("typeOrder", getTypeOrder())
            .append("typeIsdel", getTypeIsdel())
            .append("userId", getUserId())
            .append("typeTime", getTypeTime())
            .toString();
    }
}
